import {formatDate} from '../../components/date.js';

export const editInlineAndCellColumn = [
    {
        title: '序号',
        type: 'index',
        width: 80,
        align: 'center'
    },
    {
        title: '用户名',
        align: 'center',
        key: 'refereeName',
        editable: true
    },
    {
        title: '用户手机号',
        align: 'center',
        key: 'refereePhone',
        editable: true
    },
    {
        title: '裁判编号',
        align: 'center',
        key: 'refereeNo',
        editable: true
    },
    {
        title: '角色',
        align: 'center',
        key: 'deviceState',
        render: function (e) {  
            if(this.row.refereeRole){
        		return '裁判员';
        	}else{
        		return '裁判长'
        	}  
        }  
    },
    {
        title: '操作',
        align: 'center',
        width: 200,
        key: 'handle',
        handle: ['edit','delete']
    }
];

const tableData = {
    editInlineAndCellColumn: editInlineAndCellColumn,
};


export default tableData;
